package gui.components.map.engine;

import java.util.*;

public class RenderQueue {

	private ArrayList<Object> _renderqueue;
	private RenderQueueType _type; 

	public RenderQueue()
	{
		_renderqueue = new ArrayList<Object>();
	}
	
	
	public int GetSize()
	{
		return _renderqueue.size();
	}
	
	public void Add(Object _b)
	{
		_renderqueue.add(_b);
	}
	public void Remove(Object _b)
	{
		_renderqueue.remove(_b);
	}
	public void Remove(int _index)
	{
		_renderqueue.remove(_index);
	}
	
	public RenderQueueType GetType()
	{
		return _type;
	}	
	public void SetType(RenderQueueType _rt)
	{
		_type = _rt;
	}
	
	public Object GetObjectFromQueue(int _index)
	{
		return _renderqueue.get(_index);
	}
}
